.class public Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;
.super Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;
.source "ImageFileGridViewWrapper.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/view/ImageFileGridViewWrapper;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4
    name = "ImageEfficientAdapter"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Lcom/estrongs/android/view/FeaturedGridViewWrapper<",
        "Lcom/estrongs/fs/g;",
        ">.GridAdapter<TT;>;"
    }
.end annotation


# instance fields
.field final synthetic e:Lcom/estrongs/android/view/ImageFileGridViewWrapper;


# direct methods
.method protected constructor <init>(Lcom/estrongs/android/view/ImageFileGridViewWrapper;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;->e:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-direct {p0, p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;-><init>(Lcom/estrongs/android/view/FeaturedGridViewWrapper;)V

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)V
    .locals 2

    .line 1
    invoke-super {p0, p1, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)V

    .line 2
    iget-object v0, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    new-instance v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter$a;

    invoke-direct {v1, p0, p1, p2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter$a;-><init>(Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public getItemCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;->e:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {v0}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->q()I

    move-result v0

    return v0
.end method

.method public getItemViewType(I)I
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;->e:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->e(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/fs/g;

    .line 2
    instance-of v0, p1, Lcom/estrongs/android/ui/topclassify/d;

    if-eqz v0, :cond_0

    .line 3
    move-object v0, p1

    check-cast v0, Lcom/estrongs/android/ui/topclassify/d;

    .line 4
    invoke-virtual {v0}, Lcom/estrongs/android/ui/topclassify/d;->o()I

    move-result v0

    const/16 v1, 0x14

    if-ne v0, v1, :cond_0

    const/4 p1, 0x4

    return p1

    :cond_0
    if-eqz p1, :cond_1

    .line 5
    invoke-interface {p1}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/l;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 p1, 0x1

    goto :goto_0

    :cond_1
    if-eqz p1, :cond_2

    .line 6
    invoke-interface {p1}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object p1

    sget-object v0, Lcom/estrongs/fs/l;->L:Lcom/estrongs/fs/l;

    invoke-virtual {p1, v0}, Lcom/estrongs/fs/l;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 p1, 0x3

    goto :goto_0

    :cond_2
    const/4 p1, 0x2

    :goto_0
    return p1
.end method

.method public bridge synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 0

    .line 1
    check-cast p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;

    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;->a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)V

    return-void
.end method

.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 0

    .line 1
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;

    move-result-object p1

    return-object p1
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;
    .locals 4

    const/4 p1, 0x1

    const/4 v0, 0x0

    const/4 v1, 0x0

    if-ne p2, p1, :cond_0

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;->e:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    iget-object v2, p1, Lcom/estrongs/android/view/h0;->c:Landroid/view/LayoutInflater;

    invoke-virtual {p1}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->H0()I

    move-result p1

    invoke-virtual {v2, p1, v1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->b:Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;

    invoke-interface {v0, p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;->a(Landroid/view/View;)Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;

    move-result-object p1

    move-object v1, p1

    check-cast v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;

    .line 4
    iput p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->g:I

    goto :goto_0

    :cond_0
    const/4 v2, 0x2

    if-ne p2, v2, :cond_1

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;->e:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    iget-object v2, p1, Lcom/estrongs/android/view/h0;->c:Landroid/view/LayoutInflater;

    invoke-virtual {p1}, Lcom/estrongs/android/view/ImageFileGridViewWrapper;->G0()I

    move-result p1

    invoke-virtual {v2, p1, v1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->b:Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;

    invoke-interface {v0, p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;->a(Landroid/view/View;)Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;

    move-result-object p1

    move-object v1, p1

    check-cast v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;

    .line 7
    iput p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->g:I

    goto :goto_0

    :cond_1
    const/4 v2, 0x3

    if-ne p2, v2, :cond_2

    .line 8
    iget-object v2, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;->e:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    iget-object v2, v2, Lcom/estrongs/android/view/h0;->c:Landroid/view/LayoutInflater;

    const v3, 0x7f0c01b8

    invoke-virtual {v2, v3, v1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->b:Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;

    invoke-interface {v1, v0}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;->a(Landroid/view/View;)Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;

    .line 10
    iput p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->g:I

    .line 11
    iput-boolean p1, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->h:Z

    .line 12
    invoke-virtual {v0, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    goto :goto_0

    :cond_2
    const/4 p1, 0x4

    if-ne p2, p1, :cond_3

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageEfficientAdapter;->e:Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    iget-object p1, p1, Lcom/estrongs/android/view/h0;->c:Landroid/view/LayoutInflater;

    const v2, 0x7f0c0197

    invoke-virtual {p1, v2, v1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 14
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->b:Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;

    invoke-interface {v0, p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;->a(Landroid/view/View;)Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;

    move-result-object v0

    move-object v1, v0

    check-cast v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;

    .line 15
    iput p2, v1, Lcom/estrongs/android/view/ImageFileGridViewWrapper$ImageItemViewHolder;->g:I

    .line 16
    invoke-virtual {p1, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :cond_3
    :goto_0
    return-object v1
.end method
